package org.scrumfx.business;

import java.util.List;

import org.scrumfx.bean.Project;
import org.scrumfx.dal.ProjectDAL;
import org.scrumfx.service.ProjectSearchCriteria;

public class ProjectBusiness
{
  public Project getProject(int projectId)
  {
    Project project = projectDAL.getProject(projectId);
    return project;
  }

  public List<Project> searchProject(
      List<ProjectSearchCriteria> criterias)
  {
    return null;
  }

  public Project saveProject(Project project)
  {
    return null;
  }

  public void deleteProject(int projectId)
  {
  }

  /**********************/
  /** Spring injection **/
  /**********************/

  private ProjectDAL projectDAL;

  public ProjectDAL getProjectDAL()
  {
    return projectDAL;
  }

  public void setProjectDAL(ProjectDAL projectDAL)
  {
    this.projectDAL = projectDAL;
  }

}
